package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "品牌")
@FeignClient(url = Connect.XSX_URL, name = "xsx")
public interface WechatBrandFeign {

    /**
     * 品牌闪购1
     *
     * @return
     */
    @ApiOperation("品牌闪购")
    @PostMapping("/wechat/brand/ajaxbrandlist")
    String ajaxHotActivity();

    @RequestMapping("/wechat/brand/ajaxbrandlistforindex")
    String ajaxbrandlistforindex();
    @RequestMapping("/wechat/brand/ajaxgetbrandlist")
    String ajaxGetbrandList(@RequestParam("custId") String custId);
    @PostMapping("/wechat/brand/addbrand")
    String addBrand(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @RequestMapping("/wechat/brand/getbrandlist")
    String getBrandList();
    @RequestMapping("/wechat/brand/modifybrandwrite")
    String modifyBrandWrite(@RequestParam("tradeId")Long tradeId);
    @PostMapping("/wechat/brand/modifybrand")
    String modifyBrand(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @PostMapping("/wechat/brand/ajaxdeletebrand")
    String ajaxDeleteBrand(@RequestParam("jsonObject")JSONObject jsonObject);
}
